package com.cjc.hotel.server.controller.admin;

import com.cjc.hotel.server.entity.vo.AdminVo;
import com.cjc.hotel.server.result.Result;
import com.cjc.hotel.server.service.TAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * 后台登录控制器
 * @author chenjuncai
 */
@Controller
@RequestMapping("/admin/index")
public class IndexController {

    /**
     * 去首页页面
     *
     * @return 结果
     */
    @GetMapping("")
    public String toIndex() {
        return "index";
    }

    /**
     * 去首页默认页面
     *
     * @return 结果
     */
    @GetMapping("toMain")
    public String toMain() {
        return "main";
    }
}
